package com.sghd.pojo.candy.rank;

import java.util.List;

/**
 * @author frank
 * @date 2019-01-17 16:30
 * @desc
 **/
public class RankList {
    private long playerId;
    private int grade;
    private float winRate;
    private List<RankItem> gradeList;
    private List<RankItem> winRateList;
    public static RankList valueOf(long playerId, int grade,float winRate, List<RankItem> rankList, List<RankItem> winRateList) {
        RankList list = new RankList();
        list.playerId = playerId;
        list.grade = grade;
        list.gradeList = rankList;
        list.winRate = winRate;
        list.winRateList = winRateList;
        return list;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public List<RankItem> getGradeList() {
        return gradeList;
    }

    public void setGradeList(List<RankItem> gradeList) {
        this.gradeList = gradeList;
    }

    public long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(long playerId) {
        this.playerId = playerId;
    }

    public float getWinRate() {
        return winRate;
    }

    public void setWinRate(float winRate) {
        this.winRate = winRate;
    }

    public List<RankItem> getWinRateList() {
        return winRateList;
    }

    public void setWinRateList(List<RankItem> winRateList) {
        this.winRateList = winRateList;
    }
}
